/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.Comparator;

/**
 *
 * @author Lucas
 */
public class CustomComparator implements Comparator<Avaliacao>{

    @Override
    public int compare(Avaliacao o1, Avaliacao o2) {
        return (int) (o2.getPostos() - o1.getPostos());
    }
}
